package com.dmjj.dmjjxt.service.impl;

import com.dmjj.common.base.BaseMapper;
import com.dmjj.common.base.BaseServiceImpl;
import com.dmjj.dmjjxt.dao.StoreItemMapper;
import com.dmjj.dmjjxt.dto.StoreItemDTO;
import com.dmjj.dmjjxt.service.StoreItemService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * 店面分类字典表业务处理接口
 * @Author zhangxue
 * @Date 2019-04-16 11:27:07
 */
@Service
public class StoreItemServiceImpl extends BaseServiceImpl<StoreItemDTO, Long> implements StoreItemService {

    private static final Log LOGGER = LogFactory.getLog(StoreItemServiceImpl.class);

    @Autowired
    private StoreItemMapper mapper;

    @Override
    protected BaseMapper<StoreItemDTO, Long> getMapper() {
        return mapper;
    }

    /**
     * 店面分类字典表列表
     * @Author zhangxue
     * @Date 2019-04-16 11:27:07
     * @Param
     * @Return
     */
    @Override
    public List<StoreItemDTO> list4Page(StoreItemDTO entity, Integer pageNum, Integer... pageSize) {
        return super.list4Page(entity, pageNum, pageSize);
    }

    /**
     * 店面分类字典表列表（无分页）
     * @Author zhangxue
     * @Date 2019-04-16 11:27:07
     * @Param
     * @Return
     */
    @Override
    public List<StoreItemDTO> listByCondition(StoreItemDTO entity) {
        return super.listByCondition(entity);
    }

    /**
     * 查询店面分类字典表详情信息
     * @Author zhangxue
     * @Date 2019-04-16 11:27:07
     * @Param
     * @Return
     */
    @Override
    public StoreItemDTO queryOneByPk(Long id) {
        return super.queryOneByPk(id);
    }

    /**
     * 保存店面分类字典表信息
     * @Author zhangxue
     * @Date 2019-04-16 11:27:07
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Long save(StoreItemDTO entity) {
        return super.save(entity);
    }

    /**
     * 删除店面分类字典表信息
     * @Author zhangxue
     * @Date 2019-04-16 11:27:07
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer delete(Long id) {
        return super.delete(id);
    }
}
